#include "shell_input.h"
#include <stdio.h>
void show_usage()
{
    puts("usage: xxx");
}

int main(int argc, char* argv[])
{
    int t_integer;
    char t_ch;
    double t_double;
    char t_str[128] = "";
    #ifdef _MSC_VER
    struct SafeStringInput t_s = {t_str, 128};
    if (shell_input(argc, argv, "decs", &t_integer, &t_double, &t_ch, &t_s) <= 0)
    #else
    if (shell_input(argc, argv, "decs", &t_integer, &t_double, &t_ch, t_str) <= 0)
    #endif
    {
        show_usage();
        return 1;
    }

    printf("got input: %d %lf %c %s\n", t_integer, t_double, t_ch, t_str);
    return 0;
}
